package com.wuge.auth.feign;

import com.wuge.auth.vo.UserLoginVo;
import com.wuge.auth.vo.UserRegisterVo;
import com.wuge.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("gulimall-member")
public interface MemberFeign {
    @PostMapping ("/member/member/register")
    // @RequiresPermissions("member:member:save")
    public R register(@RequestBody UserRegisterVo member);
    @PostMapping("/member/member/login")
    // @RequiresPermissions("member:member:update")
    public R login(@RequestBody UserLoginVo userLoginVo);
    @GetMapping("/member/member/OauthLogin")
    // @RequiresPermissions("member:member:update")
    public R Giteelogin(@RequestParam("code") String code);
}
